home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / ttyloc.h < prev    next >
C/C++ Source or Header  |  1990-01-22  |  1KB  |  39 lines

  1. /* ttyloc.h -- describes the format of the binary ttyloc file */
  2.  
  3. #define TTYLOCFILE    "/etc/ttyloc.bin"
  4.  
  5. /* All integers are sizeof(long) bytes long, and are stored in the native
  6.    byte order of the machine.
  7.  
  8.    The file has three sequences of tables: the host table, the terminal
  9.    tables and the location strings.
  10.  
  11.    The prelude comes first in the file.
  12.  */
  13.  
  14. #define TTYMAGIC    0x10c10ccc
  15.  
  16. struct TTYPrelude {
  17.     long magic;            /* should be == TTYMAGIC */
  18.     long timestamp;        /* from TOPS-20 */
  19. };
  20.  
  21. /* Next comes the count of the number of host entries, followed by the
  22.    entries themselves. */
  23.  
  24. struct HostEntry {
  25.     long hostID;        /* host address */
  26.     long termOffset;        /* offset of the terminal table */
  27. };
  28.  
  29. /* Then we have the terminal tables for each host.  Each contains an entry
  30.    count followed by a number of terminal entries. */
  31.  
  32. struct TermEntry {
  33.     long termID;
  34.     long locOffset;        /* offset of description */
  35. };
  36.  
  37. /* The locOffset field points into the location part of the file which has a
  38.    number of null-terminated terminal locations. */
  39.